package com.sxygsj.baselibrary.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder


/**
 * Author: sxygsj
 * Date: 2021/2/26 16:03
 * Description:基类 recycle Adapter 便于修改第三方引用
 * History:
*/
abstract class RecyclerBaseAdapter<T> : BaseQuickAdapter<T, BaseViewHolder> {
    constructor(layoutResId: Int, data: MutableList<T>?) : super(layoutResId, data)
    constructor(layoutResId: Int) : super(layoutResId)
    override fun convert(holder: BaseViewHolder, item: T) {
        setConvert(holder,item)
    }
    abstract fun setConvert(holder: BaseViewHolder,item: T)


}